import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import GoodsDetail from '../views/GoodsDetail.vue'
import OrderPay from '../views/OrderPay.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
	{
	  path: '/goodsDetail',
	  name: 'goodsDetail',
	  component: GoodsDetail
	},{
	  path: '/orderPay',
	  name: 'orderPay',
	  component: OrderPay
	}
  ]
})

export default router
